﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace IDAL
{
    public interface IURLInfo
    {
        /// <summary>
        /// 添加网址实体
        /// </summary>
        /// <param name="ui">网址实体</param>
        /// <returns>受影响的行数</returns>
        int AddURLInfo(Model.URLInfo ui);
        /// <summary>
        /// 根据网址编号查询得到网址实体
        /// </summary>
        /// <param name="urid">网址编号</param>
        /// <returns>网址实体</returns>
        Model.URLInfo GetURLInfoPK(int urid);
        /// <summary>
        /// 通过收藏夹分类查询网址实体
        /// </summary>
        /// <param name="fid">收藏编号</param>
        /// <returns>网址实体集合</returns>
        IList<Model.URLInfo> GetURLInfoByFID(int fid);

        /// <summary>
        /// 通过网址夹查询网址信息
        /// </summary>
        /// <param name="fid">网址夹编号</param>
        /// <returns>数据集</returns>
        DataSet GetURLInfoDataSet(int fid);

        /// <summary>
        /// 修改网址信息
        /// </summary>
        /// <param name="ui">网址实体</param>
        /// <returns>受影响的行数</returns>
        int UpdateURLInfo(Model.URLInfo ui);
        /// <summary>
        /// 删除网址信息
        /// </summary>
        /// <param name="urid">编号</param> 
        /// <returns>受影响的行数</returns>
        int DeleteURLInfo(int urid);
    }
}
